{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>跳转提示</title>
    <link rel="stylesheet" href="/static/libs/layui/css/layui.css">
    <style>
        body{
            background-color: #f2f2f2;
            padding: 20px;
        }
        .layui-container{
            height: 560px;
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: auto;
            background-color: #fff;
            text-align: center;
            color: #393d49;
            padding: 0 20px;
        }
        .layui-icon{
            font-size: 360px;
            display: block;
        }
        .layui-word-aux{
            margin: 15px;
        }
        @media screen and (max-width:768px) {
            body {
                background-color: #fff;
            }
            .layui-container{
                height: 500px;
            }
            .layui-icon{
                font-size: 300px;
            }
        }
    </style>
</head>
<body>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-md12">
                
                <?php switch ($code) {?>
                    <?php case 1:?>
                    <i class="layui-icon layui-icon-ok-circle"></i>
                    <h1><p class="success"><?php echo(strip_tags($msg));?></p></h1>
                    <?php break;?>
                    <?php case 0:?>
                    <i class="layui-icon layui-icon-404"></i>
                    <h1><p class="error"><?php echo(strip_tags($msg));?></p></h1>
                    <?php break;?>
                <?php } ?>
                
                <p class="layui-word-aux">页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b></p>
                <a href="/" class="layui-btn layui-btn-lg layui-btn-primary">返回首页</a>
                <a href="<?php echo($url);?>" class="layui-btn layui-btn-lg">立即跳转</a>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        (function(){
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>
</body>
</html>